﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;

using System.ComponentModel.DataAnnotations.Schema;

using SMG.Domain.Model.Migration;



namespace Infrastructure.Repository.EntityFramework.Migration
{
    public class FirstTaskStateConfiguration : EntityTypeConfiguration<FirstMoveTaskState>
    {

        public FirstTaskStateConfiguration()
        {
            ToTable("t_move_task_state");
            HasKey<long>(b => b.ID);
            Property(b => b.ID).HasColumnName("id")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
                .IsRequired();
            Property(p => p.PlayID).HasColumnName("play_id");
            Property(p => p.ChannelId).HasColumnName("ChannelId");
            Property(p => p.ListId).HasColumnName("ListId");
            Property(p => p.Code).HasColumnName("code");
            Property(p => p.SourceServer).HasColumnName("from_server");
            Property(p => p.TargetServer).HasColumnName("to_server");
            Property(p => p.Status).HasColumnName("state");
            Property(p => p.Message).HasColumnName("message");
            Property(p => p.CreateTime).HasColumnName("CreateTime");
            Property(p => p.UpdateTime).HasColumnName("UpdateTime");
        }

    }
}
